package com.hfxt.config;

import org.springframework.util.AntPathMatcher;

//封装路径匹配方法,用于判断请求的接口地址是否需要拦截的接口
public class PathUtil {
    private static AntPathMatcher matcher=new AntPathMatcher();
    public static boolean isPathMath(String pattern,String path){
        return matcher.match(pattern,path);
    }

}
